package com.nanjustar.api.moudle.security.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ConsumerVo {

    @ApiModelProperty(value = "用户id", name = "userId", required = true, dataType = "Long")
    private Long userId;

    @NotNull(message = "用户名不能为空！")
    @ApiModelProperty(value = "用户名", name = "username", required = true, dataType = "String")
    private String username;

    @NotNull(message = "昵称不能为空！")
    @ApiModelProperty(value = "昵称", name = "nickname", required = true, dataType = "String")
    private String nickname;

    @NotNull(message = "性别")
    @ApiModelProperty(value = "性别", name = "gender", dataType = "Integer")
    private Integer gender;

    @NotNull(message = "电话不能为空！")
    @ApiModelProperty(value = "电话", name = "phonenum", required = true, dataType = "String")
    private String phonenum;

    @NotNull(message = "邮箱不能为空！")
    @ApiModelProperty(value = "邮箱不能为空！", name = "email", required = true, dataType = "String")
    private String email;

    @NotNull(message = "密码不能为空！")
    @ApiModelProperty(value = "密码不能为空！",name = "password",required = true,dataType = "String")
    private String password;

    @ApiModelProperty(value = "创建时间",name = "gmtCreate",dataType = "Date")
    private Date gmtCreate;

    @ApiModelProperty(value = "创建人",name = "createBy",dataType = "String")
    private String createBy;

    @ApiModelProperty(value = "修改时间",name = "gmtUpdate",dataType = "Date")
    private Date gmtUpdate;

    @ApiModelProperty(value = "修改人",name = "updateBy",dataType = "String")
    private String updateBy;

    @ApiModelProperty(value = "备注信息", name = "remark", required = true, dataType = "String")
    private String remark;
}
